const mongoose = require('../config/db/mongo');
const moment = require('moment');
const Schema = mongoose.Schema;
const schemaOptions = {
        versionKey: false
    }
const privateAccountSchema = new Schema({
    name:String,
    uid:String,
    addTime: { type: Date, default: Date.now },
    updatetime: { type: Date },
    isDelete: Number,
}, schemaOptions);

// methods ====================== 提高数据库检索速度 按顺序
privateAccountSchema.index({ name: 1 });
// create the model for users and expose it to our app
module.exports = mongoose.model('myprivateaccounts', privateAccountSchema, 'myprivateaccounts');